package com.ybwh.springboot2.uidgen.mapper;


import com.gitee.fastmybatis.core.mapper.CrudMapper;
import com.github.pagehelper.Page;
import com.ybwh.springboot2.uidgen.model.po.WorkerNode;
import org.apache.ibatis.annotations.Param;

/**
 * 百度UID Generator 分布式id生成器DAO
 *
 * @author Fan Beibei
 * @date 2023-04-15 20:53:45
 */
public interface WorkerNodeMapper extends CrudMapper<WorkerNode/*实体类*/, Long/*主键类型*/> {

    /**
     * 分页查询
     *
     * @param param    查询参数
     * @param pageNum  页号
     * @param pageSize 页大小
     * @return
     */
    Page<WorkerNode> selectByPage(
            @Param("param") WorkerNode param,
            @Param("pageNum") int pageNum,
            @Param("pageSize") int pageSize);


}